<?php if (ztmao('index-list1') != '') { ?>
<?php 
$categories=explode(",",ztmao('index-list1-id'));
foreach ($categories as $cat=>$catid ){
?>
<div id="hour24" class="clearfix">
	<div class="hour24-title">
		<h3><?php $cat = get_category($catid);echo $cat->name; ?></h3>
	</div>
	<?php 	query_posts( 'cat='.$catid.'&posts_per_page=1,&ignore_sticky_posts=1' );
	while( have_posts() ): the_post(); ?>
	<div class="col-sm-12 col-md-6 col-lg-6 hour24-left">
		<div class="hour24-left-img">
			<a href="<?php the_permalink(); ?>" title="<?php the_title();?>" <?php if( ztmao('ztmao_post_target')) { echo 'target="_blank"';}?>>
			<?php if (ztmao('qiniu') == '1') { ?>    
			<?php wpjam_post_thumbnail(array(600,400),$crop=1);?>    
			<?php } else { } ?>    
			<?php if (ztmao('qiniu') == '0') { ?>    
			<img src="<?php echo get_template_directory_uri(); ?>/timthumb.php?src=<?php echo post_thumbnail_src(); ?>&w=600&h=400&zc=1" alt="<?php the_title(); ?>"/> 
			<?php } else { } ?> 					
			</a>
		</div>
		<h3 class="htitle-color" style="font-weight: 400;"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h3>
		<div class="mob-author">
			<span class="author-face"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ) ?>" <?php if( ztmao('ztmao_post_target')) { echo 'target="_blank"';}?>><?php echo get_avatar( get_the_author_meta('email'), '25' );?></a></span>
			<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ) ?>" <?php if( ztmao('ztmao_post_target')) { echo 'target="_blank"';}?>><span class="author-name "><?php echo get_the_author() ?></span></a>
			<span class="time"><i class="iconfont icon-shijian"></i> <?php echo timeago( get_gmt_from_date(get_the_time('Y-m-d G:i:s')) ); ?></span>
			<?php if (ztmao('list-liulan') != '') { ?>
			<span class="time"><i class="iconfont icon-faxian"></i> <?php post_views('',''); ?></span>
			<?php } ?>
			<?php if (ztmao('list-comment') != '') { ?>
			<span class="time"><i class="iconfont icon-pinglun"></i> <?php echo get_post($post->ID)->comment_count; ?></span>
			<?php } ?>
		</div>
		<div class="mob-sub">
			<?php echo mb_strimwidth( strip_tags( apply_filters( 'the_content', $post->post_content ) ), 0, 105,"..." ); ?>
		</div>
	</div>
	<?php endwhile; wp_reset_query(); ?>
	<?php query_posts( 'cat='.$catid.'&posts_per_page='.ztmao('index_list1_number').'&ignore_sticky_posts=1&offset=1' );
		while( have_posts() ): the_post(); 
	?>
	<div class="col-sm-12 col-md-6 col-lg-6 hour24-right">
		<ul>
			<li class="clearfix">
			<a href="<?php the_permalink(); ?>" title="<?php the_title();?>" <?php if( ztmao('ztmao_post_target')) { echo 'target="_blank"';}?>>
			<div class="h24-r-img">
			<?php if (ztmao('qiniu') == '1') { ?>    
			<?php wpjam_post_thumbnail(array(128,82),$crop=1);?>    
			<?php } else { } ?>    
			<?php if (ztmao('qiniu') == '0') { ?>    
			<img src="<?php echo get_template_directory_uri(); ?>/timthumb.php?src=<?php echo post_thumbnail_src(); ?>&w=128&h=82&zc=1" alt="<?php the_title(); ?>"/> 
			<?php } else { } ?> 
			</div>
			</a>
			<div class="h24-r-text">
				<a href="<?php the_permalink(); ?>" title="<?php the_title();?>" <?php if( ztmao('ztmao_post_target')) { echo 'target="_blank"';}?>>
				<span class="h24-r-title"><?php the_title();?></span>
				</a>
				<p class="mob-author">
					<span class="time"><i class="iconfont icon-shijian"></i> <?php echo timeago( get_gmt_from_date(get_the_time('Y-m-d G:i:s')) ); ?></span>
					<?php if (ztmao('list-liulan') != '') { ?>
					<span class="time"><i class="iconfont icon-faxian"></i> <?php post_views('',''); ?></span>
					<?php } ?>
					<?php if (ztmao('list-comment') != '') { ?>
					<span class="time pinglun"><i class="iconfont icon-pinglun"></i> <?php echo get_post($post->ID)->comment_count; ?></span>
					<?php } ?>
				</p>
			</div>
			</li>
		</ul>
	</div>
	<?php endwhile; wp_reset_query(); ?>
</div>
<?php } ?>
<?php } else { } ?>
<!--adv02 -->
<?php if (ztmao('ztmao_ad_index2') != '') { ?>
<div id="adv02" style="margin-top: 20px;">
	<?php echo ztmao('ztmao_list1_ad_url'); ?>
</div>
<?php } ?>